<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class Abstract_table_relation</title>
			<link rel="stylesheet" href="../../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class Abstract_table_relation</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
							<a href="#sec-descendents">Descendents</a>
			|											<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Abstract class for all table model classes.</p>
	<ul class="tags">
				<li><span class="field">author:</span> Andrej Jursa</li>
				<li><span class="field">version:</span> 1.0</li>
				<li><span class="field">copyright:</span> FMFI Comenius University in Bratislava 2012</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_core---abstract_table_relation.php.html">/core/abstract_table_relation.php</a> (line <span class="field">16</span>)
		</p>
		
				
		<pre><a href="../../Abstract/Core/Abstract_table_core.html">Abstract_table_core</a>
   |
   --Abstract_table_relation</pre>
	
			</div>
</div>

	<a name="sec-descendents"></a>
	<div class="info-box">
		<div class="info-box-title">Direct descendents</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
			<span class="disabled">Descendents</span>
			|												<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
								|															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<table cellpadding="2" cellspacing="0" class="class-table">
				<tr>
					<th class="class-table-header">Class</th>
					<th class="class-table-header">Description</th>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../TableModels/Inventions_to_images_table_relation.html">Inventions_to_images_table_relation</a></td>
					<td>
											
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../TableModels/Inventions_to_miniapps_table_relation.html">Inventions_to_miniapps_table_relation</a></td>
					<td>
											
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../TableModels/Inventions_to_one_image_table_relation.html">Inventions_to_one_image_table_relation</a></td>
					<td>
											
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../TableModels/Inventions_to_periods_table_relation.html">Inventions_to_periods_table_relation</a></td>
					<td>
											
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../TableModels/Inventions_to_physicists_table_relation.html">Inventions_to_physicists_table_relation</a></td>
					<td>
											
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../TableModels/Logs_to_one_admin_table_relation.html">Logs_to_one_admin_table_relation</a></td>
					<td>
											
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../TableModels/Miniapps_to_miniapp_files_table_relation.html">Miniapps_to_miniapp_files_table_relation</a></td>
					<td>
											
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../TableModels/Periods_to_inventions_table_relation.html">Periods_to_inventions_table_relation</a></td>
					<td>
											
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../TableModels/Periods_to_physicists_table_relation.html">Periods_to_physicists_table_relation</a></td>
					<td>
											
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../TableModels/Physicists_to_images_table_relation.html">Physicists_to_images_table_relation</a></td>
					<td>
											
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../TableModels/Physicists_to_inventions_table_relation.html">Physicists_to_inventions_table_relation</a></td>
					<td>
											
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../TableModels/Physicists_to_miniapps_table_relation.html">Physicists_to_miniapps_table_relation</a></td>
					<td>
											
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../TableModels/Physicists_to_one_image_table_relation.html">Physicists_to_one_image_table_relation</a></td>
					<td>
											
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../TableModels/Physicists_to_periods_table_relation.html">Physicists_to_periods_table_relation</a></td>
					<td>
											
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../TableModels/Physicists_to_questions_table_relation.html">Physicists_to_questions_table_relation</a></td>
					<td>
											
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../TableModels/Questions_to_answers_table_relation.html">Questions_to_answers_table_relation</a></td>
					<td>
											
										</td>
				</tr>
							</table>
		</div>
	</div>


	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Variable Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
							| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<div class="var-summary">
																																																																																																																																<div class="var-title">
					<span class="var-type">integer</span>
					<a href="#$count" title="details" class="var-name">$count</a>
				</div>
																<div class="var-title">
					<span class="var-type">array<integer></span>
					<a href="#$custom_limit" title="details" class="var-name">$custom_limit</a>
				</div>
																<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$custom_order_by" title="details" class="var-name">$custom_order_by</a>
				</div>
																<div class="var-title">
					<span class="var-type">array<mixed></span>
					<a href="#$custom_where" title="details" class="var-name">$custom_where</a>
				</div>
																<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$foreign_index_field" title="details" class="var-name">$foreign_index_field</a>
				</div>
																<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$foreign_primary_field" title="details" class="var-name">$foreign_primary_field</a>
				</div>
																<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$foreign_table_name" title="details" class="var-name">$foreign_table_name</a>
				</div>
																<div class="var-title">
					<span class="var-type">array<integer></span>
					<a href="#$ids" title="details" class="var-name">$ids</a>
				</div>
																<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$mm_foreign_id_field" title="details" class="var-name">$mm_foreign_id_field</a>
				</div>
																<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$mm_local_id_field" title="details" class="var-name">$mm_local_id_field</a>
				</div>
																<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$mm_sorting_field" title="details" class="var-name">$mm_sorting_field</a>
				</div>
																<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$mm_table_name" title="details" class="var-name">$mm_table_name</a>
				</div>
																<div class="var-title">
					<span class="var-type">bool</span>
					<a href="#$relation_type_mm" title="details" class="var-name">$relation_type_mm</a>
				</div>
																<div class="var-title">
					<span class="var-type">array<Abstract_table_row></span>
					<a href="#$rows" title="details" class="var-name">$rows</a>
				</div>
											</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
																		<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																																																																																																																				
												<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#add" title="details" class="method-name">add</a>
											(<span class="var-type">integer|<a href="../../Abstract/Core/Abstract_table_row.html">Abstract_table_row</a></span>&nbsp;<span class="var-name">$local_id</span>, <span class="var-type">integer|<a href="../../Abstract/Core/Abstract_table_row.html">Abstract_table_row</a></span>&nbsp;<span class="var-name">$foreign_id</span>, [<span class="var-type">integer|<a href="../../Abstract/Core/Abstract_table_row.html">Abstract_table_row</a></span>&nbsp;<span class="var-name">$after_id</span> = <span class="var-default">NULL</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">array<Abstract_table_row></span>
										<a href="#allIds" title="details" class="method-name">allIds</a>
											(<span class="var-type">integer|<a href="../../Abstract/Core/Abstract_table_row.html">Abstract_table_row</a></span>&nbsp;<span class="var-name">$local_id</span>, [<span class="var-type">array<integer|Abstract_table_row></span>&nbsp;<span class="var-name">$foreign_ids</span> = <span class="var-default">NULL</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">array<integer></span>
										<a href="#allIdsMultiple" title="details" class="method-name">allIdsMultiple</a>
											(<span class="var-type">array<integer|Abstract_table_row></span>&nbsp;<span class="var-name">$local_ids</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">integer</span>
										<a href="#count" title="details" class="method-name">count</a>
											(<span class="var-type">integer|<a href="../../Abstract/Core/Abstract_table_row.html">Abstract_table_row</a></span>&nbsp;<span class="var-name">$local_id</span>, [<span class="var-type">array<integer|Abstract_table_row></span>&nbsp;<span class="var-name">$foreign_ids</span> = <span class="var-default">NULL</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">integer</span>
										<a href="#countMultiple" title="details" class="method-name">countMultiple</a>
											(<span class="var-type">array<integer|Abstract_table_row></span>&nbsp;<span class="var-name">$local_ids</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#delete" title="details" class="method-name">delete</a>
											(<span class="var-type">integer|<a href="../../Abstract/Core/Abstract_table_row.html">Abstract_table_row</a></span>&nbsp;<span class="var-name">$local_id</span>, <span class="var-type">integer|<a href="../../Abstract/Core/Abstract_table_row.html">Abstract_table_row</a></span>&nbsp;<span class="var-name">$foreign_id</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#deleteAll" title="details" class="method-name">deleteAll</a>
											(<span class="var-type">integer|Abstact_table_row</span>&nbsp;<span class="var-name">$local_id</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">array<Abstract_table_row></span>
										<a href="#get" title="details" class="method-name">get</a>
											(<span class="var-type">integer|<a href="../../Abstract/Core/Abstract_table_row.html">Abstract_table_row</a></span>&nbsp;<span class="var-name">$local_id</span>, [<span class="var-type">array<integer|Abstract_table_row></span>&nbsp;<span class="var-name">$foreign_ids</span> = <span class="var-default">NULL</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">array<Abstract_table_row></span>
										<a href="#getMultiple" title="details" class="method-name">getMultiple</a>
											(<span class="var-type">array<integer|Abstract_table_row></span>&nbsp;<span class="var-name">$local_ids</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#getRowsAndIds" title="details" class="method-name">getRowsAndIds</a>
											(<span class="var-type">integer|<a href="../../Abstract/Core/Abstract_table_row.html">Abstract_table_row</a></span>&nbsp;<span class="var-name">$local_id</span>, [<span class="var-type">array<integer|Abstract_table_row></span>&nbsp;<span class="var-name">$foreign_ids</span> = <span class="var-default">NULL</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#getRowsAndIdsMultiple" title="details" class="method-name">getRowsAndIdsMultiple</a>
											(<span class="var-type">array<integer|Abstract_table_row></span>&nbsp;<span class="var-name">$local_ids</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#insertLimit" title="details" class="method-name">insertLimit</a>
											(<span class="var-type">CI_DB_active_record</span>&nbsp;<span class="var-name">$db</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#insertOrderByAndNotification" title="details" class="method-name">insertOrderByAndNotification</a>
											(<span class="var-type">CI_DB_active_record</span>&nbsp;<span class="var-name">$db</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#insertWhere" title="details" class="method-name">insertWhere</a>
											(<span class="var-type">CI_DB_active_record</span>&nbsp;<span class="var-name">$db</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#replaceFirstQuestionMark" title="details" class="method-name">replaceFirstQuestionMark</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$where</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$value</span>, <span class="var-type">CI_DB_active_record</span>&nbsp;<span class="var-name">$db</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#reset" title="details" class="method-name">reset</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result"><a href="../../Abstract/Core/Abstract_table_relation.html">Abstract_table_relation</a></span>
										<a href="#setLimit" title="details" class="method-name">setLimit</a>
											([<span class="var-type">integer</span>&nbsp;<span class="var-name">$how_many</span> = <span class="var-default">NULL</span>], [<span class="var-type">integer</span>&nbsp;<span class="var-name">$start_from</span> = <span class="var-default">0</span>])
									</div>
																<div class="method-definition">
											<span class="method-result"><a href="../../Abstract/Core/Abstract_table_relation.html">Abstract_table_relation</a></span>
										<a href="#setOrderBy" title="details" class="method-name">setOrderBy</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$new_order_by</span> = <span class="var-default">NULL</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#setTo" title="details" class="method-name">setTo</a>
											(<span class="var-type">integer|<a href="../../Abstract/Core/Abstract_table_row.html">Abstract_table_row</a></span>&nbsp;<span class="var-name">$local_id</span>, <span class="var-type">array<integer|Abstract_table_row></span>&nbsp;<span class="var-name">$foreign_ids</span>)
									</div>
																<div class="method-definition">
											<span class="method-result"><a href="../../Abstract/Core/Abstract_table_relation.html">Abstract_table_relation</a></span>
										<a href="#setWhere" title="details" class="method-name">setWhere</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$conditions</span> = <span class="var-default">NULL</span>], [<span class="var-type">array<mixed></span>&nbsp;<span class="var-name">$substituents</span> = <span class="var-default">NULL</span>])
									</div>
								</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<a name="var$count" id="$count"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">integer</span>
			<span class="var-name">$count</span>
			 = <span class="var-default"> NULL</span>			(line <span class="line-number">31</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> count of rows in relation.</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$custom_limit" id="$custom_limit"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">array<integer></span>
			<span class="var-name">$custom_limit</span>
			 = <span class="var-default"> NULL</span>			(line <span class="line-number">82</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> custom limit clausule for selecting.</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$custom_order_by" id="$custom_order_by"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$custom_order_by</span>
			 = <span class="var-default"> NULL</span>			(line <span class="line-number">77</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> custom order by clausule for selecting.</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$custom_where" id="$custom_where"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">array<mixed></span>
			<span class="var-name">$custom_where</span>
			 = <span class="var-default"> NULL</span>			(line <span class="line-number">87</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> custom where clausule for selecting.</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$foreign_index_field" id="$foreign_index_field"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$foreign_index_field</span>
			 = <span class="var-default"> ''</span>			(line <span class="line-number">71</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> name of column with reference index to local table in foreign table.</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$foreign_primary_field" id="$foreign_primary_field"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$foreign_primary_field</span>
			 = <span class="var-default"> 'id'</span>			(line <span class="line-number">66</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> name of column with primary index in foreign table.</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$foreign_table_name" id="$foreign_table_name"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$foreign_table_name</span>
			 = <span class="var-default"> ''</span>			(line <span class="line-number">21</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> name of foreign table.</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$ids" id="$ids"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">array<integer></span>
			<span class="var-name">$ids</span>
			 = <span class="var-default"> NULL</span>			(line <span class="line-number">36</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> array of primary index for each row.</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$mm_foreign_id_field" id="$mm_foreign_id_field"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$mm_foreign_id_field</span>
			 = <span class="var-default"> ''</span>			(line <span class="line-number">56</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> name of column with foreign index in mm table.</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$mm_local_id_field" id="$mm_local_id_field"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$mm_local_id_field</span>
			 = <span class="var-default"> ''</span>			(line <span class="line-number">51</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> name of column with local index in mm table.</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$mm_sorting_field" id="$mm_sorting_field"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$mm_sorting_field</span>
			 = <span class="var-default"> ''</span>			(line <span class="line-number">61</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> name of column with records sorting information in mm table.</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$mm_table_name" id="$mm_table_name"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$mm_table_name</span>
			 = <span class="var-default"> ''</span>			(line <span class="line-number">46</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> name of mm table.</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$relation_type_mm" id="$relation_type_mm"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">bool</span>
			<span class="var-name">$relation_type_mm</span>
			 = <span class="var-default"> FALSE</span>			(line <span class="line-number">41</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> switch to mm relation type.</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$rows" id="$rows"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">array<Abstract_table_row></span>
			<span class="var-name">$rows</span>
			 = <span class="var-default"> NULL</span>			(line <span class="line-number">26</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> array of foreign table rows.</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
						
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
																	<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>

<a name="methodadd" id="add"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">add</span> (line <span class="line-number">306</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">This function will add new relation to mm table.</p>
<p class="description"><p>Optionaly can be sorted.</p><p>Returns FALSE if relation already exists.</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> TRUE, when record is inserted, FALSE otherwise.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			add
		</span>
					(<span class="var-type">integer|<a href="../../Abstract/Core/Abstract_table_row.html">Abstract_table_row</a></span>&nbsp;<span class="var-name">$local_id</span>, <span class="var-type">integer|<a href="../../Abstract/Core/Abstract_table_row.html">Abstract_table_row</a></span>&nbsp;<span class="var-name">$foreign_id</span>, [<span class="var-type">integer|<a href="../../Abstract/Core/Abstract_table_row.html">Abstract_table_row</a></span>&nbsp;<span class="var-name">$after_id</span> = <span class="var-default">NULL</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer|<a href="../../Abstract/Core/Abstract_table_row.html">Abstract_table_row</a></span>
				<span class="var-name">$local_id</span><span class="var-description">: local table primary key value.</span>			</li>
					<li>
				<span class="var-type">integer|<a href="../../Abstract/Core/Abstract_table_row.html">Abstract_table_row</a></span>
				<span class="var-name">$foreign_id</span><span class="var-description">: foreign table primary key value.</span>			</li>
					<li>
				<span class="var-type">integer|<a href="../../Abstract/Core/Abstract_table_row.html">Abstract_table_row</a></span>
				<span class="var-name">$after_id</span><span class="var-description">: foreign table primary key value, which has to be before new inserted record in sorting order.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodallIds" id="allIds"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">allIds</span> (line <span class="line-number">289</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Renew array of foreign table primary indexes if it is NULL and returns it.</p>
	<ul class="tags">
				<li><span class="field">return:</span> array of foreign table primary indexes.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array<Abstract_table_row></span>
		<span class="method-name">
			allIds
		</span>
					(<span class="var-type">integer|<a href="../../Abstract/Core/Abstract_table_row.html">Abstract_table_row</a></span>&nbsp;<span class="var-name">$local_id</span>, [<span class="var-type">array<integer|Abstract_table_row></span>&nbsp;<span class="var-name">$foreign_ids</span> = <span class="var-default">NULL</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer|<a href="../../Abstract/Core/Abstract_table_row.html">Abstract_table_row</a></span>
				<span class="var-name">$local_id</span><span class="var-description">: primary index value of local table.</span>			</li>
					<li>
				<span class="var-type">array<integer|Abstract_table_row></span>
				<span class="var-name">$foreign_ids</span><span class="var-description">: array of primary index values of foreign table.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodallIdsMultiple" id="allIdsMultiple"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">allIdsMultiple</span> (line <span class="line-number">165</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns all primary indexes of foreign rows in relation to list of local ids using.</p>
<p class="description"><p>Works only for mm relations.</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> array of primary indexes of foreign rows.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array<integer></span>
		<span class="method-name">
			allIdsMultiple
		</span>
					(<span class="var-type">array<integer|Abstract_table_row></span>&nbsp;<span class="var-name">$local_ids</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array<integer|Abstract_table_row></span>
				<span class="var-name">$local_ids</span><span class="var-description">: array of local indexex.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcount" id="count"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">count</span> (line <span class="line-number">221</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns count of rows in relation.</p>
	<ul class="tags">
				<li><span class="field">return:</span> count of rows.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">integer</span>
		<span class="method-name">
			count
		</span>
					(<span class="var-type">integer|<a href="../../Abstract/Core/Abstract_table_row.html">Abstract_table_row</a></span>&nbsp;<span class="var-name">$local_id</span>, [<span class="var-type">array<integer|Abstract_table_row></span>&nbsp;<span class="var-name">$foreign_ids</span> = <span class="var-default">NULL</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer|<a href="../../Abstract/Core/Abstract_table_row.html">Abstract_table_row</a></span>
				<span class="var-name">$local_id</span><span class="var-description">: primary index value of local table.</span>			</li>
					<li>
				<span class="var-type">array<integer|Abstract_table_row></span>
				<span class="var-name">$foreign_ids</span><span class="var-description">: array of primary index values of foreign table.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcountMultiple" id="countMultiple"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">countMultiple</span> (line <span class="line-number">179</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Return count of all rows in relation with multiple local rows.</p>
<p class="description"><p>Works only for mm relations.</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> count of foreignt rows.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">integer</span>
		<span class="method-name">
			countMultiple
		</span>
					(<span class="var-type">array<integer|Abstract_table_row></span>&nbsp;<span class="var-name">$local_ids</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array<integer|Abstract_table_row></span>
				<span class="var-name">$local_ids</span><span class="var-description">: array of local indexes.</span>			</li>
				</ul>
		
			
	</div>
<a name="methoddelete" id="delete"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">delete</span> (line <span class="line-number">381</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Deletes relation from mm table.</p>
	<ul class="tags">
				<li><span class="field">return:</span> TRUE, when this relation is deleted, FALSE otherwise.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			delete
		</span>
					(<span class="var-type">integer|<a href="../../Abstract/Core/Abstract_table_row.html">Abstract_table_row</a></span>&nbsp;<span class="var-name">$local_id</span>, <span class="var-type">integer|<a href="../../Abstract/Core/Abstract_table_row.html">Abstract_table_row</a></span>&nbsp;<span class="var-name">$foreign_id</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer|<a href="../../Abstract/Core/Abstract_table_row.html">Abstract_table_row</a></span>
				<span class="var-name">$local_id</span><span class="var-description">: local table primary key value.</span>			</li>
					<li>
				<span class="var-type">integer|<a href="../../Abstract/Core/Abstract_table_row.html">Abstract_table_row</a></span>
				<span class="var-name">$foreign_id</span><span class="var-description">: foreign table primary key value.</span>			</li>
				</ul>
		
			
	</div>
<a name="methoddeleteAll" id="deleteAll"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">deleteAll</span> (line <span class="line-number">493</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Deletes all relations between local and foreign tables from database mm table.</p>
	<ul class="tags">
				<li><span class="field">return:</span> TRUE, if all relations are deleted, FALSE otherwise.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			deleteAll
		</span>
					(<span class="var-type">integer|Abstact_table_row</span>&nbsp;<span class="var-name">$local_id</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer|Abstact_table_row</span>
				<span class="var-name">$local_id</span><span class="var-description">: id of local table, from which have to be deleted all relations to foreign table.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodget" id="get"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">get</span> (line <span class="line-number">276</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Renew array of foreign table rows if it is NULL and returns it.</p>
	<ul class="tags">
				<li><span class="field">return:</span> array of foreign table rows.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array<Abstract_table_row></span>
		<span class="method-name">
			get
		</span>
					(<span class="var-type">integer|<a href="../../Abstract/Core/Abstract_table_row.html">Abstract_table_row</a></span>&nbsp;<span class="var-name">$local_id</span>, [<span class="var-type">array<integer|Abstract_table_row></span>&nbsp;<span class="var-name">$foreign_ids</span> = <span class="var-default">NULL</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer|<a href="../../Abstract/Core/Abstract_table_row.html">Abstract_table_row</a></span>
				<span class="var-name">$local_id</span><span class="var-description">: primary index value of local table.</span>			</li>
					<li>
				<span class="var-type">array<integer|Abstract_table_row></span>
				<span class="var-name">$foreign_ids</span><span class="var-description">: array of primary index values of foreign table.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetMultiple" id="getMultiple"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getMultiple</span> (line <span class="line-number">151</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns all foreign rows in relation to list of local ids using.</p>
<p class="description"><p>Works only for mm relations.</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> array of foreign rows.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array<Abstract_table_row></span>
		<span class="method-name">
			getMultiple
		</span>
					(<span class="var-type">array<integer|Abstract_table_row></span>&nbsp;<span class="var-name">$local_ids</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array<integer|Abstract_table_row></span>
				<span class="var-name">$local_ids</span><span class="var-description">: array of local indexex.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetRowsAndIds" id="getRowsAndIds"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getRowsAndIds</span> (line <span class="line-number">526</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Query database for related foreign table rows and theirs primary indexes.</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			getRowsAndIds
		</span>
					(<span class="var-type">integer|<a href="../../Abstract/Core/Abstract_table_row.html">Abstract_table_row</a></span>&nbsp;<span class="var-name">$local_id</span>, [<span class="var-type">array<integer|Abstract_table_row></span>&nbsp;<span class="var-name">$foreign_ids</span> = <span class="var-default">NULL</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer|<a href="../../Abstract/Core/Abstract_table_row.html">Abstract_table_row</a></span>
				<span class="var-name">$local_id</span><span class="var-description">: primary index value of local table.</span>			</li>
					<li>
				<span class="var-type">array<integer|Abstract_table_row></span>
				<span class="var-name">$foreign_ids</span><span class="var-description">: array of primary index values of foreign table.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetRowsAndIdsMultiple" id="getRowsAndIdsMultiple"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getRowsAndIdsMultiple</span> (line <span class="line-number">620</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Loads foreign table rows related to list of local ids, only works for mm relations.</p>
	<ul class="tags">
				<li><span class="field">return:</span> TRUE, if everything is ok and query were executed, FALSE otherwise.</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			getRowsAndIdsMultiple
		</span>
					(<span class="var-type">array<integer|Abstract_table_row></span>&nbsp;<span class="var-name">$local_ids</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array<integer|Abstract_table_row></span>
				<span class="var-name">$local_ids</span><span class="var-description">: array of local indexes.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodinsertLimit" id="insertLimit"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">insertLimit</span> (line <span class="line-number">692</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Inserts custom LIMIT clausule to given active record.</p>
	<ul class="tags">
				<li><span class="field">access:</span> private</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			insertLimit
		</span>
					(<span class="var-type">CI_DB_active_record</span>&nbsp;<span class="var-name">$db</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">CI_DB_active_record</span>
				<span class="var-name">$db</span><span class="var-description">: database active record object.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodinsertOrderByAndNotification" id="insertOrderByAndNotification"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">insertOrderByAndNotification</span> (line <span class="line-number">674</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Inserts custom ORDER BY clausule to given active record and return boolean notification.</p>
	<ul class="tags">
				<li><span class="field">return:</span> TRUE, if there is custom order by clause, or FALSE otherwise.</li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			insertOrderByAndNotification
		</span>
					(<span class="var-type">CI_DB_active_record</span>&nbsp;<span class="var-name">$db</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">CI_DB_active_record</span>
				<span class="var-name">$db</span><span class="var-description">: database active record object.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodinsertWhere" id="insertWhere"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">insertWhere</span> (line <span class="line-number">704</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Inserts custom additional condition(s) to WHERE clausule in given active record.</p>
	<ul class="tags">
				<li><span class="field">access:</span> private</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			insertWhere
		</span>
					(<span class="var-type">CI_DB_active_record</span>&nbsp;<span class="var-name">$db</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">CI_DB_active_record</span>
				<span class="var-name">$db</span><span class="var-description">: database active record object.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodreplaceFirstQuestionMark" id="replaceFirstQuestionMark"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">replaceFirstQuestionMark</span> (line <span class="line-number">724</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Replaces first found question mark with given value using given database active record class.</p>
	<ul class="tags">
				<li><span class="field">return:</span> altered where clausule.</li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			replaceFirstQuestionMark
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$where</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$value</span>, <span class="var-type">CI_DB_active_record</span>&nbsp;<span class="var-name">$db</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$where</span><span class="var-description">: where clausule to be altered.</span>			</li>
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$value</span><span class="var-description">: value, to be replacet against first question mark from left.</span>			</li>
					<li>
				<span class="var-type">CI_DB_active_record</span>
				<span class="var-name">$db</span><span class="var-description">: database active record object.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodreset" id="reset"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">reset</span> (line <span class="line-number">514</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Empty rows array and set them to NULL, so it will be refilled after calling get() method.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			reset
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodsetLimit" id="setLimit"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">setLimit</span> (line <span class="line-number">117</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">This function will set new limit clausule to select, it resets the selected rows.</p>
	<ul class="tags">
				<li><span class="field">return:</span> reference to this object.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../Abstract/Core/Abstract_table_relation.html">Abstract_table_relation</a></span>
		<span class="method-name">
			setLimit
		</span>
					([<span class="var-type">integer</span>&nbsp;<span class="var-name">$how_many</span> = <span class="var-default">NULL</span>], [<span class="var-type">integer</span>&nbsp;<span class="var-name">$start_from</span> = <span class="var-default">0</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$how_many</span><span class="var-description">: how many rows to select.</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$start_from</span><span class="var-description">: starting inded.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetOrderBy" id="setOrderBy"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">setOrderBy</span> (line <span class="line-number">136</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">This function will set new ordre by clausule to select, it resets selected rows.</p>
	<ul class="tags">
				<li><span class="field">return:</span> reference to this object.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../Abstract/Core/Abstract_table_relation.html">Abstract_table_relation</a></span>
		<span class="method-name">
			setOrderBy
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$new_order_by</span> = <span class="var-default">NULL</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$new_order_by</span><span class="var-description">: $new_order_by order by clause for select.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetTo" id="setTo"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">setTo</span> (line <span class="line-number">438</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">This function will delete all existing relations and add new relations between local table row and array of foreign table rows.</p>
	<ul class="tags">
				<li><span class="field">return:</span> TRUE, when new relations are established, FALSE otherwise.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			setTo
		</span>
					(<span class="var-type">integer|<a href="../../Abstract/Core/Abstract_table_row.html">Abstract_table_row</a></span>&nbsp;<span class="var-name">$local_id</span>, <span class="var-type">array<integer|Abstract_table_row></span>&nbsp;<span class="var-name">$foreign_ids</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer|<a href="../../Abstract/Core/Abstract_table_row.html">Abstract_table_row</a></span>
				<span class="var-name">$local_id</span><span class="var-description">: local table primary key value.</span>			</li>
					<li>
				<span class="var-type">array<integer|Abstract_table_row></span>
				<span class="var-name">$foreign_ids</span><span class="var-description">: array of foreign table primary key values.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetWhere" id="setWhere"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">setWhere</span> (line <span class="line-number">96</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">This function will set the additional where clausule conditions with optional substituents, it resets the selected rows.</p>
	<ul class="tags">
				<li><span class="field">return:</span> reference to this object.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../Abstract/Core/Abstract_table_relation.html">Abstract_table_relation</a></span>
		<span class="method-name">
			setWhere
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$conditions</span> = <span class="var-default">NULL</span>], [<span class="var-type">array<mixed></span>&nbsp;<span class="var-name">$substituents</span> = <span class="var-default">NULL</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$conditions</span><span class="var-description">: where clausule conditions as string, can contains question marks for replace with substituens.</span>			</li>
					<li>
				<span class="var-type">array<mixed></span>
				<span class="var-name">$substituents</span><span class="var-description">: array of substituents to be replaced against questions marks in where condition, in given order.</span>			</li>
				</ul>
		
			
	</div>
							<h4>Inherited Methods</h4>
				<a name='inherited_methods'><!-- --></a>	
									<!-- =========== Summary =========== -->
					<p>Inherited From <span class="classname"><a href="../../Abstract/Core/Abstract_table_core.html">Abstract_table_core</a></span></p>
					<blockquote>
													<span class="method-name"><a href="../../Abstract/Core/Abstract_table_core.html#methodisCalledFrom">Abstract_table_core::isCalledFrom()</a></span><br>
													<span class="method-name"><a href="../../Abstract/Core/Abstract_table_core.html#methodisInsideTemplate">Abstract_table_core::isInsideTemplate()</a></span><br>
													<span class="method-name"><a href="../../Abstract/Core/Abstract_table_core.html#method__get">Abstract_table_core::__get()</a></span><br>
											</blockquote>
										
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Tue, 15 Jan 2013 16:53:57 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.4</a>
	</p>
	</div></body>
</html>